package org.pro.core.validateCode.processor;

import org.springframework.web.context.request.ServletWebRequest;
/**
 * 验证码处理接口
 * @author luoqiz
 *
 */
public interface ValidateCodeProcessor {

	/**
	 * 生成验证码
	 * @param servletWebRequest
	 * @throws Exception 
	 */
	public void createValidateCode(ServletWebRequest servletWebRequest) throws Exception;
	
	/**
	 * 校验验证码
	 * @param request
	 */
	void validate(ServletWebRequest request);
}
